package com.shop.utils;

import java.util.UUID;

/**
 * @author Clh
 * @className Utils
 * @description
 * @date 2020/11/23 16:49
 */
public class Utils {
    /**
     * @param
     * @return java.lang.String
     * @author Clh
     * @description uuid工具类
     * @date 2020/11/23 16:59
     **/
    public static ThreadLocal<Object> threadLocal;

    public static String UUIDUtils() {
        return UUID.randomUUID().toString().replaceAll("-", "");
    }

    public static Object get() {
        return threadLocal.get();
    }

    public static void set(Object o) {
        threadLocal.set(o);
    }

    public static void remove() {
        threadLocal.remove();
    }
}
